package com.teamall.web.sys.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class AidOrganArg {
    private String pk_name = "ORGAN_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<AidOrganCriteria> oredCriteria;

    public AidOrganArg() {
        oredCriteria = new ArrayList<AidOrganCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<AidOrganCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(AidOrganCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public AidOrganCriteria or() {
    	AidOrganCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public AidOrganCriteria createCriteria() {
    	AidOrganCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected AidOrganCriteria createCriteriaInternal() {
    	AidOrganCriteria criteria = new AidOrganCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<AidOrganCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<AidOrganCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<AidOrganCriterion> getAllCriteria() {
            return criteria;
        }

        public List<AidOrganCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new AidOrganCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new AidOrganCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new AidOrganCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new AidOrganCriterion(condition, value1, value2));
        }

        public AidOrganCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andOrganIdIsNull() {
            addCriterion("ORGAN_ID is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdIsNotNull() {
            addCriterion("ORGAN_ID is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdEqualTo(Integer value) {
            addCriterion("ORGAN_ID =", value, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdNotEqualTo(Integer value) {
            addCriterion("ORGAN_ID <>", value, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdGreaterThan(Integer value) {
            addCriterion("ORGAN_ID >", value, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ORGAN_ID >=", value, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdLessThan(Integer value) {
            addCriterion("ORGAN_ID <", value, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdLessThanOrEqualTo(Integer value) {
            addCriterion("ORGAN_ID <=", value, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdLike(Integer value) {
            addCriterion("ORGAN_ID like ", value, "ORGAN_ID", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdNotLike(Integer value) {
            addCriterion("ORGAN_ID  not like ", value, "ORGAN_ID", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdLeftLike(Integer value) {
            addCriterion("ORGAN_ID like ", value, "ORGAN_ID", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdNotLeftLike(Integer value) {
            addCriterion("ORGAN_ID  not like ", value, "ORGAN_ID", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdRightLike(Integer value) {
            addCriterion("ORGAN_ID like ", value, "ORGAN_ID", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdNotRightLike(Integer value) {
            addCriterion("ORGAN_ID  not like ", value, "ORGAN_ID", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdIn(List<Integer> values) {
            addCriterion("ORGAN_ID  in ", values, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdNotIn(List<Integer> values) {
            addCriterion("ORGAN_ID not in ", values, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdBetween(Integer value1, Integer value2) {
            addCriterion("ORGAN_ID between ", value1, value2, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ORGAN_ID not between ", value1, value2, "ORGAN_ID");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andOrganNameIsNull() {
            addCriterion("ORGAN_NAME is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameIsNotNull() {
            addCriterion("ORGAN_NAME is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameEqualTo(String value) {
            addCriterion("ORGAN_NAME =", value, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameNotEqualTo(String value) {
            addCriterion("ORGAN_NAME <>", value, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameGreaterThan(String value) {
            addCriterion("ORGAN_NAME >", value, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameGreaterThanOrEqualTo(String value) {
            addCriterion("ORGAN_NAME >=", value, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameLessThan(String value) {
            addCriterion("ORGAN_NAME <", value, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameLessThanOrEqualTo(String value) {
            addCriterion("ORGAN_NAME <=", value, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameLike(String value) {
            addCriterion("ORGAN_NAME like ", value, "ORGAN_NAME", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameNotLike(String value) {
            addCriterion("ORGAN_NAME  not like ", value, "ORGAN_NAME", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameLeftLike(String value) {
            addCriterion("ORGAN_NAME like ", value, "ORGAN_NAME", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameNotLeftLike(String value) {
            addCriterion("ORGAN_NAME  not like ", value, "ORGAN_NAME", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameRightLike(String value) {
            addCriterion("ORGAN_NAME like ", value, "ORGAN_NAME", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameNotRightLike(String value) {
            addCriterion("ORGAN_NAME  not like ", value, "ORGAN_NAME", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameIn(List<String> values) {
            addCriterion("ORGAN_NAME  in ", values, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameNotIn(List<String> values) {
            addCriterion("ORGAN_NAME not in ", values, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameBetween(String value1, String value2) {
            addCriterion("ORGAN_NAME between ", value1, value2, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganNameNotBetween(String value1, String value2) {
            addCriterion("ORGAN_NAME not between ", value1, value2, "ORGAN_NAME");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andAdminRegionIsNull() {
            addCriterion("ADMIN_REGION is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionIsNotNull() {
            addCriterion("ADMIN_REGION is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionEqualTo(String value) {
            addCriterion("ADMIN_REGION =", value, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionNotEqualTo(String value) {
            addCriterion("ADMIN_REGION <>", value, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionGreaterThan(String value) {
            addCriterion("ADMIN_REGION >", value, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionGreaterThanOrEqualTo(String value) {
            addCriterion("ADMIN_REGION >=", value, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionLessThan(String value) {
            addCriterion("ADMIN_REGION <", value, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionLessThanOrEqualTo(String value) {
            addCriterion("ADMIN_REGION <=", value, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionLike(String value) {
            addCriterion("ADMIN_REGION like ", value, "ADMIN_REGION", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionNotLike(String value) {
            addCriterion("ADMIN_REGION  not like ", value, "ADMIN_REGION", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionLeftLike(String value) {
            addCriterion("ADMIN_REGION like ", value, "ADMIN_REGION", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionNotLeftLike(String value) {
            addCriterion("ADMIN_REGION  not like ", value, "ADMIN_REGION", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionRightLike(String value) {
            addCriterion("ADMIN_REGION like ", value, "ADMIN_REGION", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionNotRightLike(String value) {
            addCriterion("ADMIN_REGION  not like ", value, "ADMIN_REGION", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionIn(List<String> values) {
            addCriterion("ADMIN_REGION  in ", values, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionNotIn(List<String> values) {
            addCriterion("ADMIN_REGION not in ", values, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionBetween(String value1, String value2) {
            addCriterion("ADMIN_REGION between ", value1, value2, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAdminRegionNotBetween(String value1, String value2) {
            addCriterion("ADMIN_REGION not between ", value1, value2, "ADMIN_REGION");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andOrganTypeIsNull() {
            addCriterion("ORGAN_TYPE is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeIsNotNull() {
            addCriterion("ORGAN_TYPE is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeEqualTo(Integer value) {
            addCriterion("ORGAN_TYPE =", value, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeNotEqualTo(Integer value) {
            addCriterion("ORGAN_TYPE <>", value, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeGreaterThan(Integer value) {
            addCriterion("ORGAN_TYPE >", value, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ORGAN_TYPE >=", value, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeLessThan(Integer value) {
            addCriterion("ORGAN_TYPE <", value, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeLessThanOrEqualTo(Integer value) {
            addCriterion("ORGAN_TYPE <=", value, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeLike(Integer value) {
            addCriterion("ORGAN_TYPE like ", value, "ORGAN_TYPE", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeNotLike(Integer value) {
            addCriterion("ORGAN_TYPE  not like ", value, "ORGAN_TYPE", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeLeftLike(Integer value) {
            addCriterion("ORGAN_TYPE like ", value, "ORGAN_TYPE", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeNotLeftLike(Integer value) {
            addCriterion("ORGAN_TYPE  not like ", value, "ORGAN_TYPE", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeRightLike(Integer value) {
            addCriterion("ORGAN_TYPE like ", value, "ORGAN_TYPE", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeNotRightLike(Integer value) {
            addCriterion("ORGAN_TYPE  not like ", value, "ORGAN_TYPE", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeIn(List<Integer> values) {
            addCriterion("ORGAN_TYPE  in ", values, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeNotIn(List<Integer> values) {
            addCriterion("ORGAN_TYPE not in ", values, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeBetween(Integer value1, Integer value2) {
            addCriterion("ORGAN_TYPE between ", value1, value2, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andOrganTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ORGAN_TYPE not between ", value1, value2, "ORGAN_TYPE");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andBelongTypeIsNull() {
            addCriterion("BELONG_TYPE is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeIsNotNull() {
            addCriterion("BELONG_TYPE is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeEqualTo(Integer value) {
            addCriterion("BELONG_TYPE =", value, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeNotEqualTo(Integer value) {
            addCriterion("BELONG_TYPE <>", value, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeGreaterThan(Integer value) {
            addCriterion("BELONG_TYPE >", value, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("BELONG_TYPE >=", value, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeLessThan(Integer value) {
            addCriterion("BELONG_TYPE <", value, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeLessThanOrEqualTo(Integer value) {
            addCriterion("BELONG_TYPE <=", value, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeLike(Integer value) {
            addCriterion("BELONG_TYPE like ", value, "BELONG_TYPE", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeNotLike(Integer value) {
            addCriterion("BELONG_TYPE  not like ", value, "BELONG_TYPE", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeLeftLike(Integer value) {
            addCriterion("BELONG_TYPE like ", value, "BELONG_TYPE", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeNotLeftLike(Integer value) {
            addCriterion("BELONG_TYPE  not like ", value, "BELONG_TYPE", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeRightLike(Integer value) {
            addCriterion("BELONG_TYPE like ", value, "BELONG_TYPE", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeNotRightLike(Integer value) {
            addCriterion("BELONG_TYPE  not like ", value, "BELONG_TYPE", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeIn(List<Integer> values) {
            addCriterion("BELONG_TYPE  in ", values, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeNotIn(List<Integer> values) {
            addCriterion("BELONG_TYPE not in ", values, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeBetween(Integer value1, Integer value2) {
            addCriterion("BELONG_TYPE between ", value1, value2, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andBelongTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("BELONG_TYPE not between ", value1, value2, "BELONG_TYPE");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andContactTelIsNull() {
            addCriterion("CONTACT_TEL is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelIsNotNull() {
            addCriterion("CONTACT_TEL is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelEqualTo(String value) {
            addCriterion("CONTACT_TEL =", value, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelNotEqualTo(String value) {
            addCriterion("CONTACT_TEL <>", value, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelGreaterThan(String value) {
            addCriterion("CONTACT_TEL >", value, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelGreaterThanOrEqualTo(String value) {
            addCriterion("CONTACT_TEL >=", value, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelLessThan(String value) {
            addCriterion("CONTACT_TEL <", value, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelLessThanOrEqualTo(String value) {
            addCriterion("CONTACT_TEL <=", value, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelLike(String value) {
            addCriterion("CONTACT_TEL like ", value, "CONTACT_TEL", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelNotLike(String value) {
            addCriterion("CONTACT_TEL  not like ", value, "CONTACT_TEL", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelLeftLike(String value) {
            addCriterion("CONTACT_TEL like ", value, "CONTACT_TEL", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelNotLeftLike(String value) {
            addCriterion("CONTACT_TEL  not like ", value, "CONTACT_TEL", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelRightLike(String value) {
            addCriterion("CONTACT_TEL like ", value, "CONTACT_TEL", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelNotRightLike(String value) {
            addCriterion("CONTACT_TEL  not like ", value, "CONTACT_TEL", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelIn(List<String> values) {
            addCriterion("CONTACT_TEL  in ", values, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelNotIn(List<String> values) {
            addCriterion("CONTACT_TEL not in ", values, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelBetween(String value1, String value2) {
            addCriterion("CONTACT_TEL between ", value1, value2, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactTelNotBetween(String value1, String value2) {
            addCriterion("CONTACT_TEL not between ", value1, value2, "CONTACT_TEL");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andContactStaffNameIsNull() {
            addCriterion("CONTACT_STAFF_NAME is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameIsNotNull() {
            addCriterion("CONTACT_STAFF_NAME is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameEqualTo(String value) {
            addCriterion("CONTACT_STAFF_NAME =", value, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameNotEqualTo(String value) {
            addCriterion("CONTACT_STAFF_NAME <>", value, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameGreaterThan(String value) {
            addCriterion("CONTACT_STAFF_NAME >", value, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameGreaterThanOrEqualTo(String value) {
            addCriterion("CONTACT_STAFF_NAME >=", value, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameLessThan(String value) {
            addCriterion("CONTACT_STAFF_NAME <", value, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameLessThanOrEqualTo(String value) {
            addCriterion("CONTACT_STAFF_NAME <=", value, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameLike(String value) {
            addCriterion("CONTACT_STAFF_NAME like ", value, "CONTACT_STAFF_NAME", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameNotLike(String value) {
            addCriterion("CONTACT_STAFF_NAME  not like ", value, "CONTACT_STAFF_NAME", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameLeftLike(String value) {
            addCriterion("CONTACT_STAFF_NAME like ", value, "CONTACT_STAFF_NAME", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameNotLeftLike(String value) {
            addCriterion("CONTACT_STAFF_NAME  not like ", value, "CONTACT_STAFF_NAME", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameRightLike(String value) {
            addCriterion("CONTACT_STAFF_NAME like ", value, "CONTACT_STAFF_NAME", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameNotRightLike(String value) {
            addCriterion("CONTACT_STAFF_NAME  not like ", value, "CONTACT_STAFF_NAME", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameIn(List<String> values) {
            addCriterion("CONTACT_STAFF_NAME  in ", values, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameNotIn(List<String> values) {
            addCriterion("CONTACT_STAFF_NAME not in ", values, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameBetween(String value1, String value2) {
            addCriterion("CONTACT_STAFF_NAME between ", value1, value2, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffNameNotBetween(String value1, String value2) {
            addCriterion("CONTACT_STAFF_NAME not between ", value1, value2, "CONTACT_STAFF_NAME");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andContactStaffTelIsNull() {
            addCriterion("CONTACT_STAFF_TEL is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelIsNotNull() {
            addCriterion("CONTACT_STAFF_TEL is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelEqualTo(String value) {
            addCriterion("CONTACT_STAFF_TEL =", value, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelNotEqualTo(String value) {
            addCriterion("CONTACT_STAFF_TEL <>", value, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelGreaterThan(String value) {
            addCriterion("CONTACT_STAFF_TEL >", value, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelGreaterThanOrEqualTo(String value) {
            addCriterion("CONTACT_STAFF_TEL >=", value, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelLessThan(String value) {
            addCriterion("CONTACT_STAFF_TEL <", value, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelLessThanOrEqualTo(String value) {
            addCriterion("CONTACT_STAFF_TEL <=", value, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelLike(String value) {
            addCriterion("CONTACT_STAFF_TEL like ", value, "CONTACT_STAFF_TEL", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelNotLike(String value) {
            addCriterion("CONTACT_STAFF_TEL  not like ", value, "CONTACT_STAFF_TEL", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelLeftLike(String value) {
            addCriterion("CONTACT_STAFF_TEL like ", value, "CONTACT_STAFF_TEL", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelNotLeftLike(String value) {
            addCriterion("CONTACT_STAFF_TEL  not like ", value, "CONTACT_STAFF_TEL", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelRightLike(String value) {
            addCriterion("CONTACT_STAFF_TEL like ", value, "CONTACT_STAFF_TEL", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelNotRightLike(String value) {
            addCriterion("CONTACT_STAFF_TEL  not like ", value, "CONTACT_STAFF_TEL", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelIn(List<String> values) {
            addCriterion("CONTACT_STAFF_TEL  in ", values, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelNotIn(List<String> values) {
            addCriterion("CONTACT_STAFF_TEL not in ", values, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelBetween(String value1, String value2) {
            addCriterion("CONTACT_STAFF_TEL between ", value1, value2, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andContactStaffTelNotBetween(String value1, String value2) {
            addCriterion("CONTACT_STAFF_TEL not between ", value1, value2, "CONTACT_STAFF_TEL");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andAddressIsNull() {
            addCriterion("ADDRESS is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressIsNotNull() {
            addCriterion("ADDRESS is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressEqualTo(String value) {
            addCriterion("ADDRESS =", value, "ADDRESS");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressNotEqualTo(String value) {
            addCriterion("ADDRESS <>", value, "ADDRESS");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressGreaterThan(String value) {
            addCriterion("ADDRESS >", value, "ADDRESS");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressGreaterThanOrEqualTo(String value) {
            addCriterion("ADDRESS >=", value, "ADDRESS");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressLessThan(String value) {
            addCriterion("ADDRESS <", value, "ADDRESS");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressLessThanOrEqualTo(String value) {
            addCriterion("ADDRESS <=", value, "ADDRESS");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressLike(String value) {
            addCriterion("ADDRESS like ", value, "ADDRESS", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressNotLike(String value) {
            addCriterion("ADDRESS  not like ", value, "ADDRESS", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressLeftLike(String value) {
            addCriterion("ADDRESS like ", value, "ADDRESS", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressNotLeftLike(String value) {
            addCriterion("ADDRESS  not like ", value, "ADDRESS", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressRightLike(String value) {
            addCriterion("ADDRESS like ", value, "ADDRESS", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressNotRightLike(String value) {
            addCriterion("ADDRESS  not like ", value, "ADDRESS", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressIn(List<String> values) {
            addCriterion("ADDRESS  in ", values, "ADDRESS");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressNotIn(List<String> values) {
            addCriterion("ADDRESS not in ", values, "ADDRESS");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressBetween(String value1, String value2) {
            addCriterion("ADDRESS between ", value1, value2, "ADDRESS");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andAddressNotBetween(String value1, String value2) {
            addCriterion("ADDRESS not between ", value1, value2, "ADDRESS");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andPostcodeIsNull() {
            addCriterion("POSTCODE is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeIsNotNull() {
            addCriterion("POSTCODE is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeEqualTo(String value) {
            addCriterion("POSTCODE =", value, "POSTCODE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeNotEqualTo(String value) {
            addCriterion("POSTCODE <>", value, "POSTCODE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeGreaterThan(String value) {
            addCriterion("POSTCODE >", value, "POSTCODE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeGreaterThanOrEqualTo(String value) {
            addCriterion("POSTCODE >=", value, "POSTCODE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeLessThan(String value) {
            addCriterion("POSTCODE <", value, "POSTCODE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeLessThanOrEqualTo(String value) {
            addCriterion("POSTCODE <=", value, "POSTCODE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeLike(String value) {
            addCriterion("POSTCODE like ", value, "POSTCODE", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeNotLike(String value) {
            addCriterion("POSTCODE  not like ", value, "POSTCODE", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeLeftLike(String value) {
            addCriterion("POSTCODE like ", value, "POSTCODE", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeNotLeftLike(String value) {
            addCriterion("POSTCODE  not like ", value, "POSTCODE", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeRightLike(String value) {
            addCriterion("POSTCODE like ", value, "POSTCODE", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeNotRightLike(String value) {
            addCriterion("POSTCODE  not like ", value, "POSTCODE", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeIn(List<String> values) {
            addCriterion("POSTCODE  in ", values, "POSTCODE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeNotIn(List<String> values) {
            addCriterion("POSTCODE not in ", values, "POSTCODE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeBetween(String value1, String value2) {
            addCriterion("POSTCODE between ", value1, value2, "POSTCODE");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andPostcodeNotBetween(String value1, String value2) {
            addCriterion("POSTCODE not between ", value1, value2, "POSTCODE");
            return (AidOrganCriteria) this;
        }
        public AidOrganCriteria andMailIsNull() {
            addCriterion("MAIL is null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailIsNotNull() {
            addCriterion("MAIL is not null");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailEqualTo(String value) {
            addCriterion("MAIL =", value, "MAIL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailNotEqualTo(String value) {
            addCriterion("MAIL <>", value, "MAIL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailGreaterThan(String value) {
            addCriterion("MAIL >", value, "MAIL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailGreaterThanOrEqualTo(String value) {
            addCriterion("MAIL >=", value, "MAIL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailLessThan(String value) {
            addCriterion("MAIL <", value, "MAIL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailLessThanOrEqualTo(String value) {
            addCriterion("MAIL <=", value, "MAIL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailLike(String value) {
            addCriterion("MAIL like ", value, "MAIL", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailNotLike(String value) {
            addCriterion("MAIL  not like ", value, "MAIL", 1);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailLeftLike(String value) {
            addCriterion("MAIL like ", value, "MAIL", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailNotLeftLike(String value) {
            addCriterion("MAIL  not like ", value, "MAIL", 0);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailRightLike(String value) {
            addCriterion("MAIL like ", value, "MAIL", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailNotRightLike(String value) {
            addCriterion("MAIL  not like ", value, "MAIL", 2);
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailIn(List<String> values) {
            addCriterion("MAIL  in ", values, "MAIL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailNotIn(List<String> values) {
            addCriterion("MAIL not in ", values, "MAIL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailBetween(String value1, String value2) {
            addCriterion("MAIL between ", value1, value2, "MAIL");
            return (AidOrganCriteria) this;
        }

        public AidOrganCriteria andMailNotBetween(String value1, String value2) {
            addCriterion("MAIL not between ", value1, value2, "MAIL");
            return (AidOrganCriteria) this;
        }

    }

    public static class AidOrganCriteria extends GeneratedCriteria {

        protected AidOrganCriteria() {
            super();
        }
    }

    public static class AidOrganCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected AidOrganCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected AidOrganCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected AidOrganCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected AidOrganCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected AidOrganCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected AidOrganCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}